 
// Source File Name:   RimDataTypeException.java

package com.sunwayhorizo.health.hl7.common;


import java.io.PrintWriter;
import java.io.StringWriter;


public class RimDataTypeException extends ValidationException
{

    public static final String RCS_ID = "$Header: RimDataTypeException.java 1.0 2005/05/13 13:29:12 atomlins noship $";
    public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header: RimDataTypeException.java 1.0 2005/05/13 13:29:12 atomlins noship $", "com.sunwayhorizo.health.facade.rimservice");

    public RimDataTypeException()
    {
    }

    public RimDataTypeException(String s, String s1)
    {
        super(s1);
        setCode(s);
    }

    public RimDataTypeException(String s, String s1, Throwable throwable)
    {
        super(s1);
        setCode(s);
        StringWriter stringwriter = new StringWriter();
        PrintWriter printwriter = new PrintWriter(stringwriter);
        throwable.printStackTrace(printwriter);
        setOriginatingStackTrace(stringwriter.toString());
    }

    public RimDataTypeException(ServiceException serviceexception)
    {
        super(serviceexception);
    }

    public RimDataTypeException(String s, String s1, Hl7Exception actbexception[])
    {
        super(s1);
        setCode(s);
        setBundledExceptions(actbexception);
    }

}
